all: static shared

mathfuncs.o: mathfuncs.hpp mathfuncs.cpp
	g++ mathfuncs.cpp -c -fPIC

static: mathfuncs.o
	ar rcs static/libmathfuncs.a mathfuncs.o

shared: mathfuncs.o
	g++ -shared -o shared/libmathfuncs.so mathfuncs.o

clean:
	rm -rf mathfuncs.o
	rm -rf static/libmathfuncs.a
	rm -rf static/libmathfuncs.so
